///////////////////////////////////////////////////////////////////////////////////////////////
// OBJs //
//////////
obj

obj/item

	var/value = 0

	Click()
		if (src.loc != usr)
			if(get_dist(src,usr) > 1) return
			usr.Get(src)
		..()

obj/item/gold
	icon = 'gold.dmi'

obj/item/kazoo
	icon = 'kazoo.dmi'
	name = "Blue Magical Kazoo"
	value = 100

	verb/Talk()
		set src in view(1)
		set popup_menu = 1
		usr << "Why are you taking to a kazoo!?"

obj/item/weapon
	var/weaponType
	var/inscription
	var/power
	var/armorPeirce

	proc/inscribe(var/text as text)
		src.inscription = text

obj/item/weapon/sword
	weaponType = "sword"
	power = 20
	armorPeirce = 5

obj/teleporter
	density = 0
	icon = 'teleporter.dmi'
	icon_state = "invisible"

	var/linkID
	var/targetID
	var/teleportType

	verb/ToNext()
		set src in view(0)
		var/newLoc
		for (var/obj/teleporter/T in world)
			if (T.linkID == src.targetID)
				newLoc = T.loc
		usr.Move(newLoc)

obj/sign
	icon = 'sign.dmi'

	var/HP = 10
	var/owner


	proc/DeathCheck(mob/player as mob)
		if (HP <= 0)
			world << "[src] was killed by [player]"
			for (var/mob/M as mob in world)
				if (M.key == src.owner)
					M.signs -= 1
			del(src)


	verb/checkOwner()
		set src in view(1)
		usr << "The sign's owner appears to be [owner]."
	verb/read()
		set src in view(1)
		usr << "The sign reads: \"[desc]\""
	verb/removeSign()
		set src in view(1)
		if (usr.key == owner)
			del(src)
		else
			usr << "You cannot remove someone else's sign."
	verb/smashSign()
		set src in view(1)
		if (src.HP <= 0)
			usr << "The sign is already destroied!"
		else
			usr << "You attack the sign!"
			view() << "[usr] attacks a sign!"
			var/damage = rand(1,10)
			world << "[damage] damage!"
			src.HP -= damage
			src.DeathCheck(usr)